package com.ssy.lingxi.product.entity.customer;

import lombok.Data;
import org.hibernate.annotations.ColumnDefault;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Author xiaomai
 * @Description 品类属性中间表
 * @Date 2022/2/28 15:51
 **/
@Entity
@Table(schema = "public",name = "product_customer_category_attribute")
@Data
@IdClass(ProductCustomerCategoryAttributePK.class)
public class ProductCustomerCategoryAttribute implements Serializable {

    @Id
    @Column(name = "category_id")
    private Integer categoryId;

    @Id
    @Column(name = "attribute_id")
    private Integer attributeId;

    @Column(columnDefinition = "int8 default 0")
    private Integer sort;

}
